package com.yunduansing.demo.model.post;

import java.util.List;

import com.yunduansing.demo.entity.PostEntity;

import lombok.Data;

@Data
public class PostTreeModel extends PostEntity {
    /**
    *
    */
    private static final long serialVersionUID = 1L;
    private String DepartName;
    private List<PostTreeModel> children;

    public PostTreeModel(){}

    public PostTreeModel(PostEntity entity,List<PostTreeModel> children){
        this.setCode(entity.getCode());
        this.setDepartId(entity.getDepartId());
        this.setName(entity.getName());
        this.setStatus(entity.getStatus());
        this.children=children;
        this.setId(entity.getId());
        this.setPid(entity.getPid());
        this.setSeq(entity.getSeq());
        this.setManager(entity.getManager());
    }
}